﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001EF RID: 495
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChapterBrief : IMessage<ChapterBrief>, IMessage, IEquatable<ChapterBrief>, IDeepCloneable<ChapterBrief>, IBufferMessage
	{
		// Token: 0x17000682 RID: 1666
		// (get) Token: 0x0600165B RID: 5723 RVA: 0x0003F8C1 File Offset: 0x0003DAC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChapterBrief> Parser
		{
			get
			{
				return ChapterBrief._parser;
			}
		}

		// Token: 0x17000683 RID: 1667
		// (get) Token: 0x0600165C RID: 5724 RVA: 0x0003F8C8 File Offset: 0x0003DAC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChapterBriefReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000684 RID: 1668
		// (get) Token: 0x0600165D RID: 5725 RVA: 0x0003F8DA File Offset: 0x0003DADA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChapterBrief.Descriptor;
			}
		}

		// Token: 0x0600165E RID: 5726 RVA: 0x0003F8E1 File Offset: 0x0003DAE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChapterBrief()
		{
		}

		// Token: 0x0600165F RID: 5727 RVA: 0x0003F8F4 File Offset: 0x0003DAF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChapterBrief(ChapterBrief other) : this()
		{
			this.takenRewardIdList_ = other.takenRewardIdList_.Clone();
			this.id_ = other.id_;
			this.eHKNCNGCLEH_ = other.eHKNCNGCLEH_;
			this.isNew_ = other.isNew_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001660 RID: 5728 RVA: 0x0003F94D File Offset: 0x0003DB4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChapterBrief Clone()
		{
			return new ChapterBrief(this);
		}

		// Token: 0x17000685 RID: 1669
		// (get) Token: 0x06001661 RID: 5729 RVA: 0x0003F955 File Offset: 0x0003DB55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TakenRewardIdList
		{
			get
			{
				return this.takenRewardIdList_;
			}
		}

		// Token: 0x17000686 RID: 1670
		// (get) Token: 0x06001662 RID: 5730 RVA: 0x0003F95D File Offset: 0x0003DB5D
		// (set) Token: 0x06001663 RID: 5731 RVA: 0x0003F965 File Offset: 0x0003DB65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17000687 RID: 1671
		// (get) Token: 0x06001664 RID: 5732 RVA: 0x0003F96E File Offset: 0x0003DB6E
		// (set) Token: 0x06001665 RID: 5733 RVA: 0x0003F976 File Offset: 0x0003DB76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EHKNCNGCLEH
		{
			get
			{
				return this.eHKNCNGCLEH_;
			}
			set
			{
				this.eHKNCNGCLEH_ = value;
			}
		}

		// Token: 0x17000688 RID: 1672
		// (get) Token: 0x06001666 RID: 5734 RVA: 0x0003F97F File Offset: 0x0003DB7F
		// (set) Token: 0x06001667 RID: 5735 RVA: 0x0003F987 File Offset: 0x0003DB87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsNew
		{
			get
			{
				return this.isNew_;
			}
			set
			{
				this.isNew_ = value;
			}
		}

		// Token: 0x06001668 RID: 5736 RVA: 0x0003F990 File Offset: 0x0003DB90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChapterBrief);
		}

		// Token: 0x06001669 RID: 5737 RVA: 0x0003F9A0 File Offset: 0x0003DBA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChapterBrief other)
		{
			return other != null && (other == this || (this.takenRewardIdList_.Equals(other.takenRewardIdList_) && this.Id == other.Id && this.EHKNCNGCLEH == other.EHKNCNGCLEH && this.IsNew == other.IsNew && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600166A RID: 5738 RVA: 0x0003FA10 File Offset: 0x0003DC10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.takenRewardIdList_.GetHashCode();
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.EHKNCNGCLEH != 0U)
			{
				num ^= this.EHKNCNGCLEH.GetHashCode();
			}
			if (this.IsNew)
			{
				num ^= this.IsNew.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600166B RID: 5739 RVA: 0x0003FA8F File Offset: 0x0003DC8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600166C RID: 5740 RVA: 0x0003FA97 File Offset: 0x0003DC97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600166D RID: 5741 RVA: 0x0003FAA0 File Offset: 0x0003DCA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsNew)
			{
				output.WriteRawTag(8);
				output.WriteBool(this.IsNew);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Id);
			}
			if (this.EHKNCNGCLEH != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.EHKNCNGCLEH);
			}
			this.takenRewardIdList_.WriteTo(ref output, ChapterBrief._repeated_takenRewardIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600166E RID: 5742 RVA: 0x0003FB28 File Offset: 0x0003DD28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.takenRewardIdList_.CalculateSize(ChapterBrief._repeated_takenRewardIdList_codec);
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.EHKNCNGCLEH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EHKNCNGCLEH);
			}
			if (this.IsNew)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600166F RID: 5743 RVA: 0x0003FBA0 File Offset: 0x0003DDA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChapterBrief other)
		{
			if (other == null)
			{
				return;
			}
			this.takenRewardIdList_.Add(other.takenRewardIdList_);
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.EHKNCNGCLEH != 0U)
			{
				this.EHKNCNGCLEH = other.EHKNCNGCLEH;
			}
			if (other.IsNew)
			{
				this.IsNew = other.IsNew;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001670 RID: 5744 RVA: 0x0003FC15 File Offset: 0x0003DE15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001671 RID: 5745 RVA: 0x0003FC20 File Offset: 0x0003DE20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 8U)
					{
						this.IsNew = input.ReadBool();
						continue;
					}
					if (num == 24U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 32U)
					{
						this.EHKNCNGCLEH = input.ReadUInt32();
						continue;
					}
					if (num == 104U || num == 106U)
					{
						this.takenRewardIdList_.AddEntriesFrom(ref input, ChapterBrief._repeated_takenRewardIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000932 RID: 2354
		private static readonly MessageParser<ChapterBrief> _parser = new MessageParser<ChapterBrief>(() => new ChapterBrief());

		// Token: 0x04000933 RID: 2355
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000934 RID: 2356
		public const int TakenRewardIdListFieldNumber = 13;

		// Token: 0x04000935 RID: 2357
		private static readonly FieldCodec<uint> _repeated_takenRewardIdList_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x04000936 RID: 2358
		private readonly RepeatedField<uint> takenRewardIdList_ = new RepeatedField<uint>();

		// Token: 0x04000937 RID: 2359
		public const int IdFieldNumber = 3;

		// Token: 0x04000938 RID: 2360
		private uint id_;

		// Token: 0x04000939 RID: 2361
		public const int EHKNCNGCLEHFieldNumber = 4;

		// Token: 0x0400093A RID: 2362
		private uint eHKNCNGCLEH_;

		// Token: 0x0400093B RID: 2363
		public const int IsNewFieldNumber = 1;

		// Token: 0x0400093C RID: 2364
		private bool isNew_;
	}
}
